#ifndef FLABEL_H
#define FLABEL_H

#include <QLabel>
#include <QWidget>
#include <QDir>
#include <QPixmap>
#include <QPropertyAnimation>
#include <QMouseEvent>
#include <QGraphicsOpacityEffect >
#include <QSequentialAnimationGroup>

class FLabel : public QWidget
{
    Q_OBJECT
public:
    FLabel(QWidget *parent = nullptr);

    QLabel *ml1;
    QLabel *ml2;

    QGraphicsOpacityEffect  *ge1;
    QPropertyAnimation *mAni_opacity1;

    QGraphicsOpacityEffect  *ge2;
    QPropertyAnimation *mAni_opacity2;

    QSequentialAnimationGroup *aniGrp;

    void setPic(QPixmap *fimg);
    void setInfo(QString date,QString picFileName,QString x,QString y,QString z);
    void setInfo(QString dmaaName);
private:
    void iniAnimationOp(QPropertyAnimation *ani,QGraphicsOpacityEffect  *gre,QEasingCurve curve,QString f_pro,int f_duration,double f_stVal,double f_edVal);
};

#endif // FLABEL_H
